from time import sleep

import requests

while True:
    s = input("说句话吧：")
    resp = requests.get("http://api.qingyunke.com/api.php", {"key":"free","appid":0,"msg":s})
    resp.encoding = "utf8"
    resp = resp.json()
    sleep(1)
    print("小爱同学：",resp["content"])